import 'package:flutter/material.dart';
import '../widgets/other_user_content_display.dart';

/// 他人用户作品页面
class OtherUserWorksTab extends StatefulWidget {
  final String userId;

  const OtherUserWorksTab({super.key, required this.userId});

  @override
  State<OtherUserWorksTab> createState() => _OtherUserWorksTabState();
}

class _OtherUserWorksTabState extends State<OtherUserWorksTab>
    with AutomaticKeepAliveClientMixin {
  @override
  bool get wantKeepAlive => true;

  @override
  Widget build(BuildContext context) {
    super.build(context);
    return OtherUserContentDisplay(
      userId: widget.userId,
      contentType: OtherUserContentType.works,
    );
  }
}
